home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-1.iso
/
utility
/
horst_2.zip
/
ANSTRIP.DOC
< prev
next >
Wrap
Text File
|
1995-12-18
|
1KB
|
30 lines
------------------------------------------------------------------------
ANSTRIP strip ANSI sequences Ver 1.6 (c) 1994 Horst Schaeffer
------------------------------------------------------------------------
Syntax: ANSTRIP < in.txt > out.txt [/p]
ANSTRIP reads from STDIN and writes to STDOUT. File size not limited.
ANSI sequences are removed if they meet the following specifications:
+ starting with ESC, "["
+ followed by numbers, semicolons, strings in quotes or "?", "="
or variables (like %1, %%a, %VAR%)
+ terminated by any character from "A" to "Z" (upper or lower case)
or "@"
With Option /p only keyboard-redefinition sequences are removed
(sequences terminated by "p"). Please note that this is NOT a 100% safe
protection against ANSI bombs in BAT files (especially when variables
are used).
ANSTRIP displays a message (to STDERR) and returns errorlevel 1
if any "p"-sequences were removed.
Help message on command errors (errorlevel 255).
= 09 FEB 1995